package com.zhiyin.seal.service;

import com.zhiyin.seal.entity.bo.ServerStatsBo;
import com.zhiyin.seal.entity.bo.SystemLogBo;
import com.zhiyin.seal.entity.bo.SystemRoleBo;
import com.zhiyin.seal.entity.bo.SystemUserBo;

import java.util.List;

/**
 * 管理后台服务
 */
public interface AdminWebService {

    SystemUserBo login(String userName,String password);

    List<SystemRoleBo> getRoleList();

    Boolean addRole(SystemRoleBo roleBo);

    List<Long> getRoleRightIdList(Long roleId);

    Boolean updateRoleRight(Long roleId,List<Long> menuIds);

    Boolean deleteRole(Long roleId);

    List<SystemUserBo> getSystemUserList();

    SystemUserBo getSystemUserByName(String userName);

    Boolean addSystemUser(SystemUserBo systemUserBo);

    Boolean modifyUserPassword(Long userId,String pwd);

    Boolean changeUserRole(Long userId,Long roleId);

    Boolean deleteUser(Long userId);

    ServerStatsBo getServerStatus();

    Boolean addSystemLog(SystemLogBo systemLogBo);

    List<SystemLogBo> getSystemLogList();
}
